import {Avatar} from '../entity/Avatar';

export enum Type {
    TEXT,
}

export class Message {
    id: string;
    time: number;
    avatar: Avatar;
    type?: Type;
    mine?:boolean = false;
}

export class TextMessage extends Message{
    type? : Type = Type.TEXT;
    text : string;
}
